added support to list all chais on server

and refactored code a little (common.css)