fixed frontend bugs