finalizing functionality and adding styling