reimplement main template using bootstrap grid system.