refactor controller stylesheet