Separate logic from presentation, CSS fixes

x Misc: Separate logic from presentation by introducing templates.
x Misc: CSS Fixes