added css file and auto redirect option