Added controller settings and a functions library. started to filter views