modify layout and add mouse wheel scaling