trim code and remove top nav icon