fixed menu edit

made sure everything works properly PHP-wise
changed aesthetics