fix security issue and modify UI for mobile