refactory ui elements and adjust screen scale