Refactor project page and modals [skip ci]