Added CSS for frontend and refactored admin scripts