Update to inbox.php and mainpage.php

Both of these are functioning as expected at this point.