Fixed menu style and added javascript functions