NewActivity framework built & onClick for TableView

also cleaned up older code a bit and moved into a lower function for now