code refactored, links when employee logged in added