Extended theme support

Added theme support to whole app. Minor bug fixes too.