Changed pins controller and modified edit page