implemented some pages and functionality for logged in users