splitted code on search controller+service, modals
added factories for serveral controllers
fixed some styles