refactor quotes page