Cleaned up code for sales view
Clean up code for employees view