updated styling
warapped my controller function for minification
fixed a bug