Organized pins direction using active records in controller