cleaned up projects page code