bugs fixed

fixed 500error in every page
minor dispaly problem fixed