fix frontend bugs