Added manage student panel and cleaned up code