cleaned up the code and added styles for the router template step