Change pool working
Major refactoring, fixed changes controller and added security