* solution optimized and functional, needs improvment in details. * optimization user controller. Fixes #8