cleaned code, added page setup